package cn.bdqn.witcity.mapper;

import cn.bdqn.witcity.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<Role> getAllRole(Role role);
    int addRole(Role role);
    int getRoleCount(Role role);
    int updateRole(Role role);
    int delRole(@Param("id")Integer id);
    int addMenuRole(@Param("rid")Integer rid,@Param("mid")Integer mid);
}
